package com.nbot.server.service.impl;

import com.nbot.server.domain.WellRtGkInfor;
import com.nbot.server.domain.WellWaterInfor;
import com.nbot.server.mapper.cluster.WellRtGkInforMapper;
import com.nbot.server.mapper.cluster.WellWaterInforMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.nbot.server.mapper.master.WaterwellMapper;
import com.nbot.server.domain.WaterwellDO;
import com.nbot.server.service.WaterwellService;



@Service
public class WaterwellServiceImpl implements WaterwellService {
	@Autowired
	private WaterwellMapper waterwellMapper;

	@Autowired
	private WellWaterInforMapper wellWaterInforMapper;

	@Autowired
	private WellRtGkInforMapper wellRtGkInforMapper;
	
	@Override
	public WaterwellDO get(String autoid){
		return waterwellMapper.get(autoid);
	}
	
	@Override
	public List<WaterwellDO> list(Map<String, Object> map){
		return waterwellMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return waterwellMapper.count(map);
	}
	
	@Override
	public int save(WaterwellDO waterwell){
		return waterwellMapper.save(waterwell);
	}
	
	@Override
	public int update(WaterwellDO waterwell){
		return waterwellMapper.update(waterwell);
	}
	
	@Override
	public int remove(String autoid){
		return waterwellMapper.remove(autoid);
	}
	
	@Override
	public int batchRemove(String[] autoids){
		return waterwellMapper.batchRemove(autoids);
	}

	@Override
	public List<WaterwellDO> listAll() {
		return waterwellMapper.listAll();
	}

	@Override
	public WellWaterInfor getWellId(String wellname){
		return wellWaterInforMapper.getWellId(wellname);
	}

	@Override
	public List<WellRtGkInfor> getTagWell(String wellid) {
		return wellRtGkInforMapper.getTagWell(wellid);
	}

}
